Returns nil if line starts inside a string, t if in a comment.
Will not correct the indentation for labels, but will correct it for braces
-and closing parentheses and brackets.."
+and closing parentheses and brackets."
(save-excursion
(if (or
(and (memq (get-text-property (point) 'syntax-type)
"Do it. (Experimental, may change semantics, recheck the result.)
We suppose that the regexp is scanned already."
(interactive "P")
- (if deep
- (prefix-numeric-value deep)
- (setq deep -1))
+ (setq deep (if deep (prefix-numeric-value deep) -1))
(save-excursion
(goto-char (cperl-make-regexp-x))
(let ((b (point)) (e (make-marker)))
\(Experimental, may change semantics, recheck the result.)
We suppose that the regexp is scanned already."
(interactive "P")
- (if deep
- (prefix-numeric-value deep)
- (setq deep -1))
+ (setq deep (if deep (prefix-numeric-value deep) -1))
(save-excursion
(cperl-regext-to-level-start)
(let ((b (point)) (e (make-marker)))